﻿using SmallERP.COM;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmallERP.PinBan
{
    public class PBDataTransfer
    {
        public static string CurrSelectPath { get; set; }

        public static int SelectUnit { get; set; }

        public static int SmallType { get; set; }

        public static string  BoardNameRemark { get; set; }

        public static bool isForcePrint { get; set; }

        public static string MinLengthPrs { get; set; }

        public static decimal Waste { get; set; }

        public static bool AutaMakeBigPic { get; set; }

        public static int SelectPhotoHV { get; set; }



        private static string namespaces = "Small.PinBan";
        /// <summary>
        /// 设置打印机
        /// </summary>
        public static string PrintName
        {
            get
            {
                string Name = IniFile.IniReadValue(namespaces, "PrintName");
                if (string.IsNullOrEmpty(Name))
                {
                    return "";
                }
                else
                {
                    return Name;
                }
            }
            set
            {
                IniFile.IniWriteValue(namespaces, "PrintName", value.ToString());
            }
        }


        /// <summary>
        /// 是否补全
        /// </summary>
        public static string Completion
        {
            get
            {
                string Name = IniFile.IniReadValue(namespaces, "Completion");
                if (string.IsNullOrEmpty(Name))
                {
                    return "";
                }
                else
                {
                    return Name;
                }
            }
            set
            {
                IniFile.IniWriteValue(namespaces, "Completion", value.ToString());
            }
        }
    }
}
